package com.frinder.base;

import com.frinder.base.akka.Actors;
import com.frinder.base.wx.SystemMessageActor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @ClassName Starter
 * @Description //TODO
 * @Author frinder
 * @Date 2019/1/19 16:59
 * @Version 1.0
 */
@Slf4j
@Order(1)
@Component("baseStarter")
public class Starter implements CommandLineRunner {

    @Autowired
    private Actors actors;

    @Override
    public void run(String... strings) {
        actors.getActorRef("systemMessageActor", SystemMessageActor.NAME);
    }
}
